package com.ruoyi.demo.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品对象 demo_goods
 * 
 * @author zhangshu
 * @date 2021-02-02
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("demo_goods")
public class DemoGoods implements Serializable {

private static final long serialVersionUID=1L;


    /** 商品id */
    @TableId(value = "goods_id")
    private Long goodsId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品重量 */
    @Excel(name = "商品重量")
    private Long weight;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 商品时间 */
    @Excel(name = "商品时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    /** 商品种类 */
    @Excel(name = "商品种类")
    private String type;

}
